package com.ranshiyan.service;

import com.github.pagehelper.PageInfo;
import com.ranshiyan.entity.User;

public interface UserService {
	
	/*根据id获取用户信息*/
	User getUserById(Integer userId);
	
	int updateStatus(Integer userId,int status);
	
	User findByName(String username);
	
	int register(User user);
	
	User login(User user);
	
	PageInfo<User> list(int page);
}
